home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 February / macformat-047.iso / Shareware Plus / Developers / CLImax 1.0 / AppleScript and CLImax / Advanced AppleScript / Handlers to try / hide / hide.rsrc / TEXT_256.txt < prev   
Encoding:
Text File  |  1996-04-21  |  248 b   |  10 lines

  1. on hide(x)
  2.  tell app "finder"
  3.   set n to x as text
  4.   if (n doesn't contain ":")
  5.   set visible of processes whose name contains n to false
  6.   else
  7.    set visible of processes whose name is (name of file x as text) to false
  8.   end if
  9.  end tell
  10. end hide